reading html content from an element